package com.user.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * <p>
 * Title: User
 * </p>
 * <p>
 * Description:
 * </p>
 * 
 * @author liukang
 * @date 2017年6月15日
 */
public class User {
	private String uid;
	private String username;
	private String password;
	private Set<Role> roles = new HashSet<>();
	/**
	 * @return the uid
	 */
	public String getUid() {
		return uid;
	}

	/**
	 * @param uid
	 *            the uid to set
	 */
	public void setUid(String uid) {
		this.uid = uid;
	}


	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the roles
	 */
	public Set<Role> getRoles() {
		return roles;
	}

	/**
	 * @param roles the roles to set
	 */
	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

}
